package com.domain;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.beanutils.BeanUtils;

import java.lang.reflect.InvocationTargetException;

/***
 * @Author Ms.发发
 * @ClassName SecurityManageEntity
 * @Date 2025/2/18 9:32
 * 安保管理
 * 数据库通用操作实体类（普通增删改查）
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("anbaoguanli")
public class SecurityManageEntity<T> extends BaseEntity {

    public SecurityManageEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    /**
     * 主键id
     */
    @TableId
    private Long id;


    /** 安保详情 securityDetails  */

    private String securityDetails;

}
